package com.tang.model.composite.transparent;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/22 21:43
 * @Desc
 * @Remarks
 */
public abstract class CourseCompnent {

    public void addChild(CourseCompnent courseCompnent) {
        throw new UnsupportedOperationException("无添加方法");
    }

    public void removeChild(CourseCompnent courseCompnent) {
        throw new UnsupportedOperationException("无添加方法");
    }

    public String getName() {
        throw new UnsupportedOperationException("无添加方法");
    }
    public Double getPrice() {
        throw new UnsupportedOperationException("无获取价格方法");
    }
    public void print() {
        throw new UnsupportedOperationException("无打印方法");
    }

}
